package cn.dengta.webapp.trade.form;

import java.io.Serializable;
import java.math.BigDecimal;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author wxm
 * @since 2022/6/24 20:09
 */

@Setter
@Getter
@Accessors(chain = true)
public class TikTokCostVO implements Serializable {

	private static final long serialVersionUID = 1L;

	/** campaignName */
	public String campaign;
	/** campaignNetwork */
	public String campaign_network;
	/** 别名 */
	public String partner_name;
	/** 广告支出 */
	public BigDecimal network_cost;
	/** 展示 */
	public Integer impressions;
	/** 渠道 */
	public String campaign_id_network;
	/** 广告组id */
	public String adgroup_id_network;
	/** 广告id */
	public String creative_id_network;
	/** 广告名称 */
	public String creative_network;

	public String getCampaign() {
		return AdjustDTO.clipCampaignName(campaign);
	}

	public String toUpperCaseCampaignNetwork() {
		return campaign_network != null ? campaign_network.toUpperCase() : null;
	}

}
